package com.dt.module.om.util;

import org.yaml.snakeyaml.Yaml;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class YmlUtil {


    public static void main(String[] args) {
        Yaml yaml=new Yaml();
        try {
            InputStream input = new FileInputStream(new File("/tmp/application.yml"));
            for (Object data : yaml.loadAll(input)){
                System.out.println("Data:"+data);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }

}
